package site.dao.parameter.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import site.param.limit.Limit;

public class ParamMysqlExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Limit limit;

    public ParamMysqlExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Limit limit) {
        this.limit = limit;
    }

    public Limit getLimit() {
        return this.limit;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andObjDescIsNull() {
            addCriterion("obj_desc is null");
            return (Criteria) this;
        }

        public Criteria andObjDescIsNotNull() {
            addCriterion("obj_desc is not null");
            return (Criteria) this;
        }

        public Criteria andObjDescEqualTo(String value) {
            addCriterion("obj_desc =", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotEqualTo(String value) {
            addCriterion("obj_desc <>", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescGreaterThan(String value) {
            addCriterion("obj_desc >", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescGreaterThanOrEqualTo(String value) {
            addCriterion("obj_desc >=", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLessThan(String value) {
            addCriterion("obj_desc <", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLessThanOrEqualTo(String value) {
            addCriterion("obj_desc <=", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescLike(String value) {
            addCriterion("obj_desc like", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotLike(String value) {
            addCriterion("obj_desc not like", value, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescIn(List<String> values) {
            addCriterion("obj_desc in", values, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotIn(List<String> values) {
            addCriterion("obj_desc not in", values, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescBetween(String value1, String value2) {
            addCriterion("obj_desc between", value1, value2, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjDescNotBetween(String value1, String value2) {
            addCriterion("obj_desc not between", value1, value2, "objDesc");
            return (Criteria) this;
        }

        public Criteria andObjNameIsNull() {
            addCriterion("obj_name is null");
            return (Criteria) this;
        }

        public Criteria andObjNameIsNotNull() {
            addCriterion("obj_name is not null");
            return (Criteria) this;
        }

        public Criteria andObjNameEqualTo(String value) {
            addCriterion("obj_name =", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotEqualTo(String value) {
            addCriterion("obj_name <>", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameGreaterThan(String value) {
            addCriterion("obj_name >", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameGreaterThanOrEqualTo(String value) {
            addCriterion("obj_name >=", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLessThan(String value) {
            addCriterion("obj_name <", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLessThanOrEqualTo(String value) {
            addCriterion("obj_name <=", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameLike(String value) {
            addCriterion("obj_name like", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotLike(String value) {
            addCriterion("obj_name not like", value, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameIn(List<String> values) {
            addCriterion("obj_name in", values, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotIn(List<String> values) {
            addCriterion("obj_name not in", values, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameBetween(String value1, String value2) {
            addCriterion("obj_name between", value1, value2, "objName");
            return (Criteria) this;
        }

        public Criteria andObjNameNotBetween(String value1, String value2) {
            addCriterion("obj_name not between", value1, value2, "objName");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidIsNull() {
            addCriterion("serial_version_uid is null");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidIsNotNull() {
            addCriterion("serial_version_uid is not null");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidEqualTo(String value) {
            addCriterion("serial_version_uid =", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidNotEqualTo(String value) {
            addCriterion("serial_version_uid <>", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidGreaterThan(String value) {
            addCriterion("serial_version_uid >", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidGreaterThanOrEqualTo(String value) {
            addCriterion("serial_version_uid >=", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidLessThan(String value) {
            addCriterion("serial_version_uid <", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidLessThanOrEqualTo(String value) {
            addCriterion("serial_version_uid <=", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidLike(String value) {
            addCriterion("serial_version_uid like", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidNotLike(String value) {
            addCriterion("serial_version_uid not like", value, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidIn(List<String> values) {
            addCriterion("serial_version_uid in", values, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidNotIn(List<String> values) {
            addCriterion("serial_version_uid not in", values, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidBetween(String value1, String value2) {
            addCriterion("serial_version_uid between", value1, value2, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andSerialVersionUidNotBetween(String value1, String value2) {
            addCriterion("serial_version_uid not between", value1, value2, "serialVersionUid");
            return (Criteria) this;
        }

        public Criteria andFiledNameIsNull() {
            addCriterion("filed_name is null");
            return (Criteria) this;
        }

        public Criteria andFiledNameIsNotNull() {
            addCriterion("filed_name is not null");
            return (Criteria) this;
        }

        public Criteria andFiledNameEqualTo(String value) {
            addCriterion("filed_name =", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameNotEqualTo(String value) {
            addCriterion("filed_name <>", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameGreaterThan(String value) {
            addCriterion("filed_name >", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameGreaterThanOrEqualTo(String value) {
            addCriterion("filed_name >=", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameLessThan(String value) {
            addCriterion("filed_name <", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameLessThanOrEqualTo(String value) {
            addCriterion("filed_name <=", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameLike(String value) {
            addCriterion("filed_name like", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameNotLike(String value) {
            addCriterion("filed_name not like", value, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameIn(List<String> values) {
            addCriterion("filed_name in", values, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameNotIn(List<String> values) {
            addCriterion("filed_name not in", values, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameBetween(String value1, String value2) {
            addCriterion("filed_name between", value1, value2, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledNameNotBetween(String value1, String value2) {
            addCriterion("filed_name not between", value1, value2, "filedName");
            return (Criteria) this;
        }

        public Criteria andFiledValueIsNull() {
            addCriterion("filed_value is null");
            return (Criteria) this;
        }

        public Criteria andFiledValueIsNotNull() {
            addCriterion("filed_value is not null");
            return (Criteria) this;
        }

        public Criteria andFiledValueEqualTo(String value) {
            addCriterion("filed_value =", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueNotEqualTo(String value) {
            addCriterion("filed_value <>", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueGreaterThan(String value) {
            addCriterion("filed_value >", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueGreaterThanOrEqualTo(String value) {
            addCriterion("filed_value >=", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueLessThan(String value) {
            addCriterion("filed_value <", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueLessThanOrEqualTo(String value) {
            addCriterion("filed_value <=", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueLike(String value) {
            addCriterion("filed_value like", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueNotLike(String value) {
            addCriterion("filed_value not like", value, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueIn(List<String> values) {
            addCriterion("filed_value in", values, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueNotIn(List<String> values) {
            addCriterion("filed_value not in", values, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueBetween(String value1, String value2) {
            addCriterion("filed_value between", value1, value2, "filedValue");
            return (Criteria) this;
        }

        public Criteria andFiledValueNotBetween(String value1, String value2) {
            addCriterion("filed_value not between", value1, value2, "filedValue");
            return (Criteria) this;
        }

        public Criteria andObjUniqueIsNull() {
            addCriterion("obj_unique is null");
            return (Criteria) this;
        }

        public Criteria andObjUniqueIsNotNull() {
            addCriterion("obj_unique is not null");
            return (Criteria) this;
        }

        public Criteria andObjUniqueEqualTo(String value) {
            addCriterion("obj_unique =", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueNotEqualTo(String value) {
            addCriterion("obj_unique <>", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueGreaterThan(String value) {
            addCriterion("obj_unique >", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueGreaterThanOrEqualTo(String value) {
            addCriterion("obj_unique >=", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueLessThan(String value) {
            addCriterion("obj_unique <", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueLessThanOrEqualTo(String value) {
            addCriterion("obj_unique <=", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueLike(String value) {
            addCriterion("obj_unique like", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueNotLike(String value) {
            addCriterion("obj_unique not like", value, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueIn(List<String> values) {
            addCriterion("obj_unique in", values, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueNotIn(List<String> values) {
            addCriterion("obj_unique not in", values, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueBetween(String value1, String value2) {
            addCriterion("obj_unique between", value1, value2, "objUnique");
            return (Criteria) this;
        }

        public Criteria andObjUniqueNotBetween(String value1, String value2) {
            addCriterion("obj_unique not between", value1, value2, "objUnique");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andPackageNameIsNull() {
            addCriterion("package_name is null");
            return (Criteria) this;
        }

        public Criteria andPackageNameIsNotNull() {
            addCriterion("package_name is not null");
            return (Criteria) this;
        }

        public Criteria andPackageNameEqualTo(String value) {
            addCriterion("package_name =", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameNotEqualTo(String value) {
            addCriterion("package_name <>", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameGreaterThan(String value) {
            addCriterion("package_name >", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameGreaterThanOrEqualTo(String value) {
            addCriterion("package_name >=", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameLessThan(String value) {
            addCriterion("package_name <", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameLessThanOrEqualTo(String value) {
            addCriterion("package_name <=", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameLike(String value) {
            addCriterion("package_name like", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameNotLike(String value) {
            addCriterion("package_name not like", value, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameIn(List<String> values) {
            addCriterion("package_name in", values, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameNotIn(List<String> values) {
            addCriterion("package_name not in", values, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameBetween(String value1, String value2) {
            addCriterion("package_name between", value1, value2, "packageName");
            return (Criteria) this;
        }

        public Criteria andPackageNameNotBetween(String value1, String value2) {
            addCriterion("package_name not between", value1, value2, "packageName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}